import { resetRouter } from "@/router";
import { store } from "@/stores";
export const useHintStore = defineStore("hint", () => {
  const hint = ref({});
  const setHint = (key, obj) => {
    console.log('setHint', obj);
    if (!hint.value[key] || !hint.value[key].length) {
      hint.value[key] = []
    }
    hint.value[key].push(obj)
  }
  return {
    hint,
    setHint
  }
})
// 非setup
export function useHintStoreHook () {
  return useHintStore(store);
}